﻿using ConfExpert.Forms.Base;
using DevExpress.XtraEditors.Repository;
using DevTeam;
using System;
using System.Windows.Forms;

namespace ConfExpert.Forms.Destex
{
    public partial class SO : XForm
    {
        public SO()
        {
            InitializeComponent();
        }

        private void Destexe_Load(object sender, EventArgs e)
        {
            
            gridView1.Init("DX_GetDestexeSip");

            gridView1.FormatAsNumber(0, "QtyOrdered");
            gridView1.AddSummary("QtyOrdered");

            RepositoryItemMemoExEdit mex = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit();
            mex.ShowIcon = false;
            mex.ScrollBars = ScrollBars.Vertical;
            mex.PopupFormMinSize = new System.Drawing.Size(750, 400);

            gridView1.Columns["MPNotes"].ColumnEdit =
            gridView1.Columns["KDNotes"].ColumnEdit = mex;

            gridView1.Columns["MPNotes"].Width =
            gridView1.Columns["KDNotes"].Width = 160;

            gridView1.BestFitColumns();

        }
    }
}
